Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-chapter printing + print preview #109

Merged
merged 3 commits into from
Aug 9, 2023
Merged

Per-chapter printing + print preview #109

merged 3 commits into from
Aug 9, 2023

Conversation

tw4l
Copy link
Contributor

@tw4l tw4l commented Aug 4, 2023

Related to last milestone of #100

This PR introduces per-chapter printing and print-preview.

The way this works is that the user is redirected to a print-friendly rendition of the epub when they enter Ctrl/Cmd-P on their keyboard or click on the new print icon in the header:

Screen Shot 2023-08-04 at 11 44 11 AM

This approach was taken because epubjs-reader and a number of the already existing features are tied pretty heavily into the existing layout, so doing this without introducing a new view would require a substantial amount of work and reworking previous features.

The new print-friendly view displays only a chapter at a time, with a select to choose a new chapter (or navigate to chapter sub-sections - this can be removed to only have top-level chapter headings if it feels busy or confusing), and a button to return to the main view with full functionality:

Screen Shot 2023-08-04 at 11 44 45 AM

Some additional work on margins may still be needed but this new view has a much better layout for printing and print preview:

Screen Shot 2023-08-04 at 11 45 07 AM

@tw4l tw4l changed the title Work in progress: Per-chapter printing + print preview Per-chapter printing + print preview Aug 9, 2023
@tw4l tw4l marked this pull request as ready for review August 9, 2023 15:01
@tw4l tw4l merged commit ce155fb into master Aug 9, 2023
@tw4l tw4l deleted the epub-printing branch August 9, 2023 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant